package com.ehome.poct.core.dao.entity.check;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ehome.mybatisplus.autoconfigure.DO;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 检测数据记录
 */
@Data
@TableName(value = "test_data_detail")
public class TestDataDetailDO extends DO<TestDataDetailDO> {
    /**
     * 检测数据主键ID
     */
    @TableId(value = "test_data_detail_id")
    private Long testDataDetailId;

    /**
     * 设备编号
     */
    @TableField(value = "sno")
    private String sno;

    /**
     * 诊所id
     */
    @TableField(value = "term_clinic_id")
    private Long termClinicId;

    /**
     * 检测项目
     */
    @TableField(value = "strip_type_code")
    private Integer stripTypeCode;

    /**
     * 试纸批次
     */
    @TableField(value = "strip_batch")
    private Integer stripBatch;

    /**
     * 检测值1
     */
    @TableField(value = "value1")
    private BigDecimal value1;

    /**
     * 检测值2
     */
    @TableField(value = "value2")
    private BigDecimal value2;

    /**
     * 检测值3
     */
    @TableField(value = "value3")
    private BigDecimal value3;

    /**
     * 检测值4
     */
    @TableField(value = "value4")
    private BigDecimal value4;

    /**
     * 错误代码
     */
    @TableField(value = "error_code")
    private Integer errorCode;

    /**
     * 算法返回的结果描述
     */
    @TableField(value = "`result`")
    private String result;

    /**
     * 对应的图片id(阿里云oss)
     */
    @TableField(value = "pic_id")
    private String picId;

    /**
     * 对应的buckertName(阿里云oss)
     */
    @TableField(value = "bucket_name")
    private String bucketName;

    @TableField(value = "real_strip_type_code")
    private Integer realStripTypeCode;

    /**
     * 算法过程的图片ID
     */
    @TableField(value = "algo_pic_id")
    private String algoPicId;

    @TableField(value = "is_delete")
    private Boolean isDelete;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    public Long createBy;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    public LocalDateTime createTime;
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    public Long updateBy;
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updateTime;
}
